Test Case Generation from UML Models
نویسندگان
چکیده
Software Testing is one of the important phases in the software development life cycle. The cost of software testing is approximately 50% of the total development cost. In order to test software in an effective and an efficient manner, the test case should be generated systematically. Unified Modeling Language (UML) is the current industrial standard used to assist software development. It is widely used to describe the requirements and the design of the software in a number of diagrams. Each diagram provides a view of the system. The class diagram provides the static configuration, while the interaction diagrams describes the dynamics of the system behavior. This paper presents a methodology to generate the test case from a design level class diagram and an interaction diagram. It is in the category of model-based testing. It is assumed that the given model is correct and the goal of the testing is to check if the implementation conforms to the given model. A car rental example is used to illustrate the test case generation. The test adequacy criteria used in this paper are the coverage for the model elements, also called the building blocks in the class diagrams and the interaction diagrams. These criteria are based on the same premise for the underlying code testing criteria to help define testing objectives. The class diagram defines the object configuration and the interaction diagram determines the method sequence in the testing. The generated test cases are compared with a few other UML model-based test case generation methodologies; they are able to meet the required test adequacy criteria better.
منابع مشابه
A Survey on Test Case Generation from UML Model
Testing is an important phase of software development, to maintain the quality control and reliability of the end products. Recent approach has been taken by the researcher to use UML models for test case generation. Various works has been done on test case generation for concurrent and nonconcurrent systems. In case of concurrent system group of activities are executed simultaneously where as ...
متن کاملAutomatic Test Case Generation from UML Models and OCL Expressions
In this paper, we discuss one approach of automated test case generation from UML models and OCL expressions. We show how to use UML and OCL to support several coverage criteria. We introduce our current prototype implementation, compare it to commercial tools, and sketch shortcomings and further development.
متن کاملApproaches for Test Case Generation from UML Diagrams
Model based testing (MBT) is an important approach with many advantages that can reduce the cost and increase the effectiveness and quality of a testing procedure. In MBT, test cases can be derived from different models, also from the popularly used UML diagrams. Different UML diagrams include various important pieces of information that can be successfully used in a testing procedure. A lot of...
متن کاملEfficient test case generation for validation of UML activity diagrams
Unified Modeling Language (UML) is widely used as a system level specification language in embedded system design. Due to the increasing complexity of embedded systems, the analysis and validation of UML specifications is becoming a challenge. UML activity diagram is promising to modeling the overall system behavior. However, lack of techniques for automated test case generation is one major bo...
متن کاملTest Case Design Using Conditioned Slicing of Activity Diagram
For testing software, test case generation is the most important part. The automation of specification based test case generation needs formal or semi formal specification. As a semiformal modeling, UML is widely used to describe analysis and design specification by both academia and industry. Thus UML models become the sources of test case generation naturally. This paper proposes a method to ...
متن کاملAutomated Test Case Generation using Petri Nets
Software testing is the process of determining the precision, quality, completeness and security of the software systems. An important step in testing software is the generation of test cases, whose quality plays a vital role in determining the time for testing and subsequently its cost. In this research, it is shown that both structural and behavioural diagrams can be used to represent specifi...
متن کامل